package com.arpa.wms.domain.dto;

import com.arpa.wms.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 供应商DTO
 * </p>
 *
 * @author LEO
 * @since 2020-09-04
 */
@Data
@ApiModel(value="SupplierDTO对象", description="供应商")
public class SupplierDTO extends BasicEntity {

    @ApiModelProperty(value = "全局code")
    private String code;

    @ApiModelProperty(value = "供应商编码")
    private String supplierCode;

    @ApiModelProperty(value = "供应商名称")
    private String name;

    @ApiModelProperty(value = "所属机构")
    private String groupCode;


    @ApiModelProperty(value = "联系人")
    private String contacts;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "信用代码")
    private String businessLicenseImgNumber;

    @ApiModelProperty(value = "法人")
    private String legalPerson;

    @ApiModelProperty(value = "身份证号")
    private String identificationNumber;

    @ApiModelProperty(value = "税点")
    private BigDecimal taxPoint;


    @ApiModelProperty(value = "区域信息")
    private List<String> areaList;

    @ApiModelProperty(value = "国家")
    private String country;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "县/区")
    private String county;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "备注")
    private String remark;


    @ApiModelProperty(value = "状态")
    private Integer status;


    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreatedStart;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreatedEnd;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModifiedStart;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModifiedEnd;

    @ApiModelProperty("创建人")
    private String createdName;
    /**
     * 修改人名称
     */
    @ApiModelProperty("修改人")
    private String modifiedName;


    @ApiModelProperty(value = "是否结算：0不结算，1结算")
    private Integer isSettlement;

}
